package com.moji.service;

import com.moji.common.entity.MyPage;
import com.moji.entity.MjOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.moji.entity.MjSupportHelp;
import com.moji.entity.dto.AddOrderDto;
import com.moji.entity.dto.QueryOrderDto;
import com.moji.entity.dto.QuerySupportHelpDto;
import com.moji.entity.vo.MijiMoYao3;
import com.moji.entity.vo.MijiMoYaoVo2;
import com.moji.entity.vo.OrderVo;
import com.moji.entity.vo.StatisticsVo;

import java.io.IOException;
import java.io.InputStream;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author ccl
 * @since 2024-07-27
 */
public interface MjOrderService extends IService<MjOrder> {

    /** 分页查询 **/
    MyPage<MjOrder> queryByPage(QueryOrderDto dto);

    /** 删除 **/
    boolean delete(Long id);

    /** 新增 **/
    MjOrder add(AddOrderDto addOrderDto);

    /** 编辑 **/
    boolean edit(AddOrderDto addOrderDto);

    /** 详情 **/
    OrderVo detail(Long id);
    /** 合同下载 **/
    InputStream getFileInputStream() throws IOException;

    /** 产品统计详情 **/
    StatisticsVo statistics(QueryOrderDto dto);

    MijiMoYaoVo2.DataBean brief(String tokens);

    MijiMoYao3.DataBean tsData(String tokens, String aggType, String startTime, String endTime);
}
